package com.sqfw.project.wp.constant;


/**
 * 返回12345平台状态
 */
public interface WpState {

    //工单暂存
    String SUSS = "00";
    //质检
    String ERROR1  = "-1";
    //承办单位处理
    String ERROR2 = "-2";
    //工单归档
    String ERROR3 = "-3";

    String ERROR6 = "-6";

    String ERROR5 = "-99";

    static String wpState(String item) {
        if (item == null) {
            return "未知";
        }
        switch (item) {
            case SUSS: return "操作成功";
            case ERROR1: return "操作失败，接口参数格式不合法；";
            case ERROR2: return "操作失败，登录失败；";
            case ERROR3: return "操作失败，接口参数必填项校验失败；";
            case ERROR5: return "操作失败，系统错误。";
            case ERROR6: return "12345工单重复推送";
            default: return "未知";
        }
    }

}
